<template>
  <PageContainer>
    <div>门店设施</div>
    <!-- <WangEditor /> -->
    <ImageTextMixing :initialCombinedData="info" ref="imageTextMixingRef" />
    <ImagePicker
      url="https://fityun-mall-cdn.fityun.cn/cloud/11053674/project_description/1105367420241209161513JF42.jpeg"
      @confirm="getImage"
    />
    <BottomButton>
      <el-button type="primary" @click="getInfo">获取数据</el-button>
    </BottomButton>
  </PageContainer>
</template>

<script setup lang="ts">
defineOptions({
  name: 'StoreTools',
})
const info = ref(
  'text:<p>哈哈</p>qpfzll201128image:<img src="https://fityun-mall-cdn.fityun.cn/cloud/11053674/project_description/1105367420241209161513JF42.jpeg"  />'
)
const imageTextMixingRef = ref()
const getImage = (url: string) => {
  console.log(url)
}
const getInfo = async () => {
  console.log(imageTextMixingRef.value)

  const res = await imageTextMixingRef.value.getData()
  console.log(res)
}
</script>

<style lang="scss" scoped></style>
